package Collection;

import java.util.List;
import java.util.Map;
import java.util.Set;

public class OFmethod {
    public static void main(String[] args) {
        List<String> list = List.of("a","b","c","a","d");
        Set<String> set = Set.of("a","b","c","a","d");
        //出现重复元素会报错
        Map<String,Integer> map =Map.of("a",1,"b",2,"c",3,"a",4,"d",5);
        //出现重复元素会报错
    }
}
